From a28cf885d5cac5d17bae7586ff88ea5e82bd70ff Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Tue, 15 Aug 2023 17:47:40 +0100 Subject: Removes unnecessary console log --- src/pages/[locale]/news/[...slug].astro | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/pages/[locale]') diff --git a/src/pages/[locale]/news/[...slug].astro b/src/pages/[locale]/news/[...slug].astro index 815387f..e3b8b36 100644 --- a/src/pages/[locale]/news/[...slug].astro +++ b/src/pages/[locale]/news/[...slug].astro @@ -19,17 +19,13 @@ export async function getStaticPaths() { } } - const paths = (await getCollection('news')).map((entry) => ({ + return (await getCollection('news')).map((entry) => ({ params: { slug: entry.slug.replace('/', '-'), locale: localeFromSlug(entry.slug), }, props: { entry }, })); - - console.info('Paths: %s', JSON.stringify(paths)); - - return paths; } const { entry } = Astro.props; -- cgit v1.2.3